package soap;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import soap.bean.User;
import soap.config.MainConfig;

public class MainApp {

	public static void main(String[] args) {


		ApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainConfig.class);
		User user = (User) applicationContext.getBean("getUser");
		System.out.println(user);
	}
}
